package insight.miescor.opp.domain;

import org.json.JSONException;
import org.json.JSONObject;

public class Users {
	private String id;
	private String name;
	private String emailid;

	public Users() {

	}

	public Users(JSONObject userObj) throws JSONException {
		id = userObj.has("id") ? userObj.getString("id") : "";
		name = userObj.has("name") ? userObj.getString("name") : "";
		emailid = userObj.has("sapId") ? userObj.getString("emailid") : "";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	
	public String getEmailid() {
		return emailid;
	}

	public void setEmailid(String emailid) {
		this.emailid = emailid;
	}
}
